import {constantFormatHtml, setColumnsDefaultKey} from '@/utils/common'
let column = [
  {
    prop: 'StaffID',
    label: '员工ID',
    width: 90,
    align: "center"
  },
  {
    prop: 'StaffName',
    label: '员工姓名',
    width: 120
  },
  {
    prop: 'Mobile',
    label: '手机号',
    width: 100
  },
  {
    prop: 'Position',
    label: '职务',
    width: 60,
    align: "center",
    formatter: (row, column, val) => {
      return constantFormatHtml(val, 'Position')
    }
  },
  {
    prop: 'Gender',
    label: '性别',
    width: 60,
    formatter: (row, column, val) => {
      return constantFormatHtml(val, 'Sex')
    }
  },
  {
    prop: 'DepartmentName',
    label: '所属部门',
    width: 120,
  },
  {
    prop: 'Status',
    label: '状态',
    width: 80,
    formatter: (row, column, val) => {
      return constantFormatHtml(val, 'BaseStatus')
    }
  },
  {
    prop: 'Email',
    label: '邮箱',
    width: 150
  },
  {
    prop: 'EnglishName',
    label: '英文名',
    showOverflowTooltip: true,
  },
  {
    columnKey: 'action',
    label: '操作',
    width: 190,
    align: 'center',
    slot: 'action',
    fixed: 'right'
  }
]

export default setColumnsDefaultKey(column)
